#!/bin/bash

base="/*BASE*/"
client_dir=$base/program/client
client=gui.py
backend=$base/program/omnibus
lib=$base/program/libs
data=$base/data
socket=$data/unix.sock

## ariba librarys
if [ -e $lib ]; then
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$lib
fi

## starting omnibus (backend)
cd $data
$backend > omnibus.log &

sleep 1

## starting client
cd $client_dir
python $client $socket

